package cn.itcast.stream;

import java.util.stream.Stream;

/**
 * 
 * @author LENOVO
 * 统计个数，终结方法，返回值是long型的整数
 */
public class Stream_count {
	public static void main(String[] args) {
		Stream<Integer> of = Stream.of(1,2,3,4,5);
		long count = of.count();
		System.out.println(count);
	}
}
